import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class DrawerPage extends StatelessWidget {
  const DrawerPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    var _textBlueStyle = TextStyle(color: Colors.blue[600]);
    var _textNormalStyle = TextStyle(color: Colors.black);
    return Drawer(
      child: ListView(
        children: [
          UserAccountsDrawerHeader(
            accountName: null,
            accountEmail: null,
            currentAccountPicture: null,
            decoration: BoxDecoration(
                image: DecorationImage(
                    fit: BoxFit.cover,
                    image: AssetImage("images/bg_account_switcher.png"))),
          ),
          ListTile(
            title: Text(
              "首页",
              style: _textBlueStyle,
            ),
            leading: ImageIcon(
              AssetImage('images/quantum_ic_home_black_24.png'),
              color: Colors.blue[600],
            ),
            onTap: () {},
          ),
          ListTile(
            title: Text(
              "翻译收藏夹",
              style: _textNormalStyle,
            ),
            leading: ImageIcon(
                AssetImage('images/quantum_ic_offline_pin_black_24.png')),
            onTap: () {},
          ),
          ListTile(
            title: Text(
              "离线翻译",
              style: _textNormalStyle,
            ),
            leading: ImageIcon(
                AssetImage('images/quantum_ic_offline_pin_black_24.png')),
            onTap: () {},
          ),
          ListTile(
            title: Text(
              "设置",
              style: _textNormalStyle,
            ),
            leading: ImageIcon(
                AssetImage('images/quantum_ic_settings_black_24.png')),
            onTap: () {},
          )
        ],
      ),
    );
  }
}
